package org.next.tesigiulia.controllers;

import org.next.tesigiulia.models.TwitterWWJModel;
import org.next.tesigiulia.utils.MyConstant;
import org.next.tesigiulia.utils.MyEventBus;
import org.next.tesigiulia.utils.MyTrigger;
import org.next.tesigiulia.views.TwitterWWJView;


public class TwitterWWJController implements ITwitterWWJController {

    private TwitterWWJView twitterWWJView;
    private TwitterWWJModel twitterWWJModel;

    public TwitterWWJController(TwitterWWJModel model, TwitterWWJView view) {

        MyEventBus.getInstance().getEventBus().register(this);
        twitterWWJModel = model;
        twitterWWJView = view;
        twitterWWJModel.setViewVisible(true);
    }

    @Override
    public void itemAreasClicked() {
        MyEventBus.getInstance().getEventBus().post(new MyTrigger(MyConstant.TITOLOFINESTRAWWJ, MyConstant.LBL_AREAS));
    }

}

